package com.lagou.edu.api;

/**
 * created by kirito at 2020/7/19
 */
public interface IAuthCodeService {

    void createCode(String email) throws Exception;

    /**
     * 校验邮箱验证码是否合法
     *
     * @param email 邮箱
     * @param code  验证码
     * @return 0/1/2
     */
    int validateCode(String email, String code);
}
